#ifndef MYSTRING_H
#define MYSTRING_H

#include <string.h>


char *str_skipws(char *);
char *str_skipnws(char *);
char *str_getword(char *src, char *dst);
char *str_getword(char *src, char *dst, char sep);

void _Sbegin(const char *);
void _Send();
int _S(const char *);

inline int str_eq(const char *s1, const char *s2) { return strcmp(s1, s2) == 0; }
inline char *str_nextwrd(char *s) { return str_skipws(str_skipnws(s)); }

void str_filename(char *s_out, const char* s_in, int n);
void str_filepath(char *s_out, const char* s_in, int n);

char *str_n2rn(char* s_out, const char* s_in);

#endif // MYSTRING_H
